package com.laicunba.ext.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.laicunba.ext.service.SlaveBidAnalysisService;

@Service
public class SlaveBidAnalysisServiceImpl extends BaseService implements SlaveBidAnalysisService {
	
	@Override
	public int findInviteInvestCount(String userId, String beginDate, String endDate) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("userId", userId);
		map.put("beginDate", beginDate);
		map.put("endDate", endDate);
		return slaveGenericQueryDao.selectOne("SLAVE_BID_ANALYSIS.findInviteInvestCount", map);
	}
	
	@Override
	public List<Map<String, Object>> findInviteInvestRank(String userId, String beginDate, String endDate) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("userId", userId);
		map.put("beginDate", beginDate);
		map.put("endDate", endDate);
		return slaveGenericQueryDao.selectList("SLAVE_BID_ANALYSIS.findInviteInvestRank", map);
	}

}
